import java.util.PriorityQueue;

public class heapTest {

    public static void main2(String[] args) {
        PriorityQueue <Integer> p = new PriorityQueue<>(new IntCmp());
        int [] emle = { 27,15,19,18,28,34,65,49,25,37};
        for (int x:emle){
            p.offer(x);
        }


        System.out.println(p.peek());


    }

    public static void main1(String[] args) {
        Heap heap = new Heap();


        int [] emle = { 27,15,19,18,28,34,65,49,25,37};
            heap.initHeap(emle);
            heap.createHeap();


        System.out.println("+======");
            heap.offer(1);

       // System.out.println("+======");
        heap.Delete(37);
        System.out.println("+======");
    }
}
        